//
//  MovieManger.h
//  FiveWork
//
//  Created by lanou3g on 15/11/23.
//  Copyright © 2015年 Project. All rights reserved.
//

#import <Foundation/Foundation.h>
@class AVPlayer;
@class AVPlayerLayer;
@class MovieModel;

@interface MovieManger : NSObject
@property(nonatomic,strong)AVPlayer *avPlayer;
@property(nonatomic,strong)AVPlayerLayer *avPlayerLayer;

@property(nonatomic,assign)BOOL UPorDown;

+(instancetype)defaultMovieManager;
/**
 *  加载页面准备
 */

-(void)prepareMoviepageWithHandle:(void(^)())handle;
/**
 *  加载播放器
 */
-(void)setupAVPlayerWithModel:(MovieModel *)movie;

/**
 *  开始播放
 */
-(void)playerPlay;
/**
 *  暂停播放
 */

- (void)playerPause;
/**
 返回model数组
 */
- (NSArray *)returnModelArray;

/**
 返回数组个数
 */
- (NSInteger)returnModelArrayCount;

/**
 返回model
 */
- (MovieModel *)returnMovieModelWithIndex:(NSInteger)index;

/**
 释放avPlayer
 */
- (void)shiFang;










@end
